#!/usr/bin/python
# -*- coding:utf-8 -*-
# @author  : micah
# @time    :  
# @function: 
# @version :


class A:
    # 构造函数
    def __init__(self, name):
        self.name = name


class B(A):
    def __init__(self, age, *args):
        # 调用父类的构造函数创建name属性
        super().__init__(*args)
        self.age = age


# 实例化子类
b = B(18, 'micah')

print(b.name, b.age)

"""
1.参数传递过程
2.不定长参数接收几个值
"""